state detection

状态检测